import request from '@/utils/request'

  // 获取敏感词库列表
  export function mingancilist(data) {
    return request({
      url: '/archive/minganci/list?pageNum=' + data.pageNum + '&pageSize=' + data.pageSize+"&name="+data.name+"&state="+data.state,
      method: 'GET',
      data: data
  
    })
  }
  
  // 添加
  export function minganci(data) {
    return request({
      url: '/archive/minganci',
      method: 'POST',
      data: data
  
    })
  }

  //修改
  export function minganciedit(data) {
    return request({
      url: '/archive/minganci/edit',
      method: 'PUT',
      data: data
  
    })
  }


  //获取敏感词信息回显
  export function minganciInfo(ID) {
    return request({
      url: '/archive/minganci/'+ID,
      method: 'GET',
    })
  }

  //删除
  export function mingancidelete(IDS) {
    return request({
      url: '/archive/minganci/'+IDS,
      method: 'DELETE',
    })
  } 

 // 导出敏感词库
 export function exportck(data) {
  return request({
    url: '/archive/isopenidentify/exportck',
    method: 'POST',
    data: data

  })
}

//批量启用/冻结
export function plxg(data) {
  return request({
    url: '/archive/minganci/plxg',
    method: 'POST',
    data: data

  })
}


 